<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
            <!--<button ng-click="changeUnit()" class="btn btn-primary">
                单位变更申请
            </button>

            <button ng-click="changeUnitAudit()" class="btn btn-primary">
                单位变更审核
            </button>-->
        </div>
    </div>
    <div class="div-top" ng-show="form.sheet">
        <span style="font-size: 20px;float:left;">错误信息修改</span>
        <div style="float:right;">
            <button ng-click="clickBtn('update')" class="btn btn-warning"><i class="iconfont icon-update"></i>&nbsp;修改</button>
            <button ng-click="clickBtn('delete')" class="btn btn-danger"><i class="iconfont icon-delete"></i>&nbsp;删除</button>
            <button ng-click="goback()" class="btn btn-secondary"><i class="iconfont icon-back"></i>&nbsp;返回</button>
        </div>
    </div>

    <form class="div-find form-inline" >

        <div class="form-group" style="position:relative;">
            <label class="form-label">工作单位：</label>
            <input type="text" placeholder="==请选择学校==" readonly="readonly" ng-model="gzdwname" class="form-control" style="width:300px;background: #fff;" ng-click="showul(1)">
            <ul class="ss-ul gzdw ss-display">
                <li> <input type="text" placeholder="学校名称" ng-model="gname" class="form-control" style="width: 100%;line-height:40px;" ng-change="gnames=gname"></li>
                <li ng-click="getSchool(0,1)">==请选择==</li>
                <li ng-repeat="school in units | filter:{name:gnames}" ng-model="apply_school" ng-click="getSchool(school,1)">{{school.name}}</li>
            </ul>
        </div>
        <div class="form-group" style="position:relative;">
            <label class="form-label">人事单位：</label>
            <input type="text" placeholder="==请选择学校==" readonly="readonly" ng-model="rsdwname" class="form-control" style="width:300px;background: #fff;" ng-click="showul(2)">
            <ul class="ss-ul rsdw ss-display">
                <li> <input type="text" placeholder="学校名称" ng-model="rname" class="form-control" style="width: 100%;line-height:40px;" ng-change="rnames=rname"></li>
                <li ng-click="getSchool(0,2)">==请选择==</li>
                <li ng-repeat="school in units | filter:{name:rnames}" ng-model="apply_school" ng-click="getSchool(school,2)">{{school.name}}</li>
            </ul>
        </div>
        <div class="form-group">
            <label class="form-label">编制类别：</label>
            <select class="form-control" ng-model="form.bzlbm" ng-options="jzg.id as jzg.name for jzg in jzgs ">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">姓名：</label>
            <input ng-model="form.name" type="text" class="form-control" placeholder="姓名"/>
        </div>
        <div class="form-group">
            <label class="form-label">邮箱地址：</label>
            <input ng-model="form.email" type="text" class="form-control" placeholder="邮箱地址"/>
        </div>
        <div class="form-group">
            <label class="form-label">手机：</label>
            <input ng-model="form.phone" type="text" class="form-control" placeholder="手机"/>
        </div>
        <div class="form-group">
            <label class="form-label" style="margin-left: 32px;">身份证：</label>
            <input ng-model="form.sfzjh" type="text" class="form-control" placeholder="身份证"/>
        </div>
        <div class="form-group" ng-if="form.userrole <= 0">
            <label class="form-label">状态：</label>
            <select class="form-control" ng-model="form.status">
                <option value="">==请选择==</option>
                <option value="0">正常</option>
                <option value="99">已删除</option>
            </select>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>

    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAlls($event.target)" /></th>
                <th column="name" class="sorting" ng-click="order($event.target)">姓名</th>
                <th column="yhm" class="sorting" ng-click="order($event.target)">用户名</th>
                <th column="id_card" class="sorting" ng-click="order($event.target)">身份证号</th>
                <th column="email" class="sorting" ng-click="order($event.target)">邮箱地址</th>
                <th column="phone" class="sorting" ng-click="order($event.target)">手机</th>
                <th column="bzlbm" class="sorting" ng-click="order($event.target)">编制类别</th>
                <th column="gzdw_name" class="sorting" ng-click="order($event.target)">工作单位</th>
                <th column="rsdw_name" class="sorting" ng-click="order($event.target)">人事单位</th>
                <th >状态</th>
            </tr>
            </thead>
            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.name}}</td>
                <td>{{row.yhm}}</td>
                <td>{{row.id_card}}</td>
                <td>{{row.email}}</td>
                <td>{{row.phone}}</td>
                <td>{{row.bzlb_name}}</td>
                <td>{{row.gzdw_name}}</td>
                <td>{{row.rsdw_name}}</td>
                <td ng-switch on="row.status">
                    <span ng-switch-when="0">正常</span>
                    <span ng-switch-when="99">已删除</span>
                </td>
                <!-- <td ng-switch on="row.status">{{row.status}}
                     <span ng-switch-when="1">教学</span>
                     <span ng-switch-when="2">长病假休息</span>
                     <span ng-switch-when="3">转入教辅岗</span>
                     <span ng-switch-when="4">转入后勤岗</span>
                 </td>-->
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>